<?php
/*
	插件初始化
*/
namespace jy_mjifee;
defined('BY_JYA') or exit('error');
function init($plugin){
	if($_SESSION['onemerchid']){
		$plugin->setting=$plugin->plugin_setting('setting'.$_SESSION['onemerchid']);
	}else{
		$plugin->setting=$plugin->plugin_setting('setting');
	}
	$plugin->pay_types=array(
		'credit'=>'打款到余额',
		'wechat'=>'打款到微信零钱',
		'alipay'=>'打款到支付宝',
		'union'=>'打款到银行卡',
		'jiaoyi'=>'交易所账户',
	);
	$plugin->commission_status=array(
		'0'=>'订单待完成',
		'1'=>'待结算',
		'2'=>'已结算',
	);
	$plugin->member_status=array(
		'0'=>'正常',
		'1'=>'禁用',
	);
	$plugin->agent_status=array(
		'0'=>'待审核',
		'1'=>'审核通过',
		'2'=>'审核不通过',
	);
	$plugin->apply_status=array(
		'0'=>'待审核',
		'1'=>'审核通过',
		'2'=>'审核不通过',
	);
	$plugin->balance_status=array(
		'0'=>'待审核',
		'1'=>'审核通过',
		'2'=>'审核不通过',
		'3'=>'已打款',
	);
	$plugin->level_types=array(
		'0'=>'普通会员',
		'1'=>'店铺员工',
		'2'=>'店铺主管',
		'3'=>'店铺店长',
	);
	$plugin->fee_types=array(
		'0'=>'直推佣金',
		'1'=>'单品直推佣金',
		'2'=>'部门分红',
		'3'=>'部门单品分红',
		'4'=>'店铺分红',
		'5'=>'店铺单品分红',
	);
	$plugin->commission_money_types=array(
		'0'=>'直推佣金',
		'1'=>'部门分红',
		'2'=>'部门单品分红',
		'4'=>'店铺分红',
		'5'=>'店铺单品分红',
	);
	$plugin->upfee_status=array(
		'0'=>'待结算',
		'1'=>'已申请',
		'2'=>'已结算',
	);
	$plugin->feelog_type=array(
		'0'=>'非单品分红',
		'1'=>'单品分红',
	);
	$plugin->datapushs=array(
		'head'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'head',
						'width' => '80',
						'height' => '80',
		),
		'qr'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'qr',
						'width' => '80',
						'height' => '80',
		),
		'nickname'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'nickname',
						'width' => '120',
						'height' => '26',
		),
		'img'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'img',
						'width' => '200',
						'height' => '200',
		),
		'title'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'title',
						'width' => '226',
						'height' => '50',
		),
		'thumb'=>array(
						'left' => '0',
						'top' => '0',
						'type' => 'thumb',
						'width' => '316',
						'height' => '316',
		),
		'text'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'text',
						'width' => '260',
						'height' => '26',
						'value' => '自定义文字',
		),
	);
	$plugin->goodsdatademo=array(
		array(
						'left' => '110',
						'top' => '385',
						'type' => 'qr',
						'width' => '100',
						'height' => '100',
		),
		array(
						'left' => '116',
						'top' => '490',
						'type' => 'text',
						'width' => '100',
						'height' => '25',
						'size' => '9',
						'value' => '长按或扫描查看',
						'color'=>'#ddd',
		),
	);
}